Skip to content

spec: fix ABNF grammar to use LF token#163

Open
0xheartcode wants to merge 1 commit into
remenoscodes:mainfrom
0xheartcode:spec/fix-abnf-grammar-only
Open

spec: fix ABNF grammar to use LF token#163
0xheartcode wants to merge 1 commit into
remenoscodes:mainfrom
0xheartcode:spec/fix-abnf-grammar-only

Conversation

@0xheartcode
Copy link
Copy Markdown

Summary

Fix ABNF grammar to use LF token (closes #130)

Section 4.8 defined CRLF = %x0A which contradicts RFC 5234 (where CRLF means %x0D.0A). Renamed the token to LF throughout the grammar to accurately reflect that Git commit messages use LF line endings. Also tightened title from TEXT-NO-LF to 1*TEXT-NO-LF to explicitly reject empty titles, and updated the 72-character guidance to use SHOULD per RFC 2119 convention.

Split from #148 — ABNF fix only, ready to merge immediately. Label normalization tracked separately.

Test plan

  • Spec-only change — no code modified
  • make test: all tests pass unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ABNF grammar: replace CRLF with LF token

1 participant